package site.zhouinfo.designpatterns.factory.staticfactory;

import site.zhouinfo.designpatterns.factory.common.MailSender;
import site.zhouinfo.designpatterns.factory.common.Sender;
import site.zhouinfo.designpatterns.factory.common.SmsSender;

/**
 * 多个工厂方法模式 静态工厂类
 * @author zhou
 * @create 2017-06-21 18:09
 * @email zhouinfo@qq.com
 * @blog blog.zhouinfo.site
 */
public class StaticSendFactory {
    public static Sender produceMail() {
        return new MailSender();
    }

    public static Sender produceSms() {
        return new SmsSender();
    }
}
